import axios from 'axios';

const API_BASE_URL = 'http://114.55.138.69:5000/api'

export const submitEvent = async (eventData) => {
    try {
        const response = await axios.post(`${API_BASE_URL}/events/submit`, eventData);
        
        return response.data;
    } catch (error) {
        console.error("Error when use EventApi:", error);
        throw error;
    }
};
